<!DOCTYPE html>
<html lang="en">
<head>
    <title>管理系统入口端</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    {% load staticfiles %}
    <link rel="stylesheet" href="{% static '/css/bootstrap.min.css' %}">
    <!-- FontAwesome CSS -->
    <link rel="stylesheet" href="{% static '/css/font-awesome.min.css' %}">
    <!-- ElegantFonts CSS -->
    <link rel="stylesheet" href="{% static '/css/elegant-fonts.css' %}">
    <!-- themify-icons CSS -->
    <link rel="stylesheet" href="{% static '/css/themify-icons.css' %}">
    <!-- Swiper CSS -->
    <link rel="stylesheet" href="{% static '/css/swiper.min.css' %}">
    <!-- Styles -->
    <link rel="stylesheet" href="{% static '/style.css' %}">
    <style type="text/css">
        .change-a-width li a{
            width: 95px;
        }
        .hero-content-overlay-height {
    height: 90px;
}
        .entry-header-top{
            margin-top: -230px;
        }
        a{

                text-decoration:none !important;
            }
    </style>
</head>
<body>
    <div class="hero-content">
        <header class="site-header">


        <div class="nav-bar">
            <div class="container">
                <div class="row">
                    <div class="col-9 col-lg-3">
                        <div class="site-branding">
                            <h1 class="site-title"><a href="{% url 'empoll:login' %}" rel="home">评分管理<small><span>系统</span></small></a></h1>
                        </div><!-- .site-branding -->
                    </div><!-- .col -->

                    <div class="col-3 col-lg-9 flex justify-content-end align-content-center">
                        <nav class="site-navigation flex justify-content-end align-items-center">
                            <ul class="flex flex-column flex-lg-row justify-content-lg-end align-content-center change-a-width">
                                <li class="current-menu-item"><a href="{% url 'empoll:login' %}">首页</a></li>
                                <!--<li><a href="#">新建</a></li>-->
                                <!--<li><a href="#">查询</a></li>-->
                                <!--<li><a href="">关于</a></li>-->

                            </ul>

                            <div class="hamburger-menu d-lg-none">
                                <span></span>
                                <span></span>
                                <span></span>
                                <span></span>
                            </div><!-- .hamburger-menu -->

                            <div class="header-bar-cart">
                                <a href="#" class="flex justify-content-center align-items-center"><span aria-hidden="true" class="icon_bag_alt"></span></a>
                            </div><!-- .header-bar-search -->
                        </nav><!-- .site-navigation -->
                    </div><!-- .col -->
                </div><!-- .row -->
            </div><!-- .container -->
        </div><!-- .nav-bar -->
    </header><!-- .site-header -->

    <div class="hero-content-overlay hero-content-overlay-height">
        <div class="container">
            <div class="row">

            </div><!-- .row -->
        </div><!-- .container -->
    </div><!-- .hero-content-hero-content-overlay -->
</div><!-- .hero-content -->

<section class="featured-courses horizontal-column courses-wrap">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <header class="heading flex justify-content-between align-items-center">
                    <h2 class="entry-title">评价</h2>

                </header><!-- .heading -->
            </div><!-- .col -->

            <div class="col-12 col-lg-12">
                <div class="course-content flex flex-wrap justify-content-between align-content-lg-stretch row">
                    <div class="course-content-wrap col-12" >
                        <header class="entry-header">
                            <h2 class="entry-title">待评价:</h2>
                            <div class="entry-meta flex flex-wrap align-items-center">
                            </div><!-- .course-date -->
                        </header><!-- .entry-header -->
                            {% if appraisered %}
                            <div class="row">
                                <div class="entry-footer col-12 col-lg-6">
                                <a style="line-height: 35px;"> 部门:{{appraisered.employ_depart}},姓名:{{appraisered.employ_name}},ID:{{appraisered.employ_ID}},职位:{% ifequal appraisered.employ_auth 0 %}
                            管理员
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 1 %}
                            书记
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 2%}
                            院长
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 3%}
                            院领导
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 4%}
                            部门负责人
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 5%}
                            其他中层
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 6%}
                            专职教师
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 7%}
                            辅导员
                            {% endifequal %}
                            {% ifequal appraisered.employ_auth 8%}
                            普通职工
                            {% endifequal %}</a>
                            </div><!-- .entry-footer -->
                                <div class="entry-footer contact-form col-12 col-lg-6" >
                                    <form  action="{% url 'empoll:addscore' apperaiser.employ_ID appraisered.employ_ID %}" method="post"   >
                                        {% csrf_token %}
                                        <input type="number" placeholder="输入评分" name="score_value"  min="0" max="100" style="width: 50%;"/>
                                        <span class="label label-info"><red style="color:red">*</red>请输入在0-100内的分值</span>
                                        <input type="submit" value="评价" style="width:220px" class="inputall">
                                    </form>
                            </div>
                            {% else %}
                            <h4>参数错误</h4>
                            {% endif %}
                            </div>
                    </div><!-- .course-content-wrap -->


            </div><!-- .col -->


            <!--employ_ID
	employ_name
	employ_auth
	employ_depart
	employ_ismiddle
	employ_login-->

        </div><!-- .row -->

            {% if  question %}
            {% for obj in question %}
             <div class="col-12 col-lg-12">
                <div class="course-content flex flex-wrap justify-content-between align-content-lg-stretch row">
                    <div class="course-content-wrap col-12" >
                        <header class="entry-header">
                            <h2 class="entry-title">{{obj.question_title}}:</h2>
                            <div class="entry-meta flex flex-wrap align-items-center">
                                 <div class="entry-footer col-12" style="border: 1px dotted gray;padding: 0 0 1px 20px;">
                                     {{obj.question_text}}
                                 </div>

                                <div class="entry-footer col-12">
                                     分值:{{obj.question_sorce}}
                                 </div>

                            </div><!-- .course-date -->
                        </header><!-- .entry-header -->

                            </div>
                    </div><!-- .course-content-wrap -->
            </div><!-- .col -->
            {%  endfor %}
            {% else %}
            <h4>暂时无评分准则</h4>
            {% endif %}
             </div><!-- .row -->
        </div><!-- .container -->
    </div>
</section><!-- .courses-wrap -->

<footer class="site-footer">
        <div class="footer-bar">
            <div class="container">
                <div class="row flex-wrap justify-content-center justify-content-lg-between align-items-center">
                    <div class="col-12 col-lg-4">
                        <div class="download-apps flex flex-wrap justify-content-center justify-content-lg-start align-items-center">
                            <a href="http://www.henannu.edu.cn/"><img src="{% static '/images/shid.jpg' %}" alt="" style="height: 37px;width: 119px;"></a>
                            <a href="https://github.com/aoxipo"><img src="{% static '/images/my1.png'  %}" alt="" style="height: 37px;width: 119px;"></a>
                        </div><!-- .download-apps -->

                    </div>
                    <div class="col-12 col-lg-4" style="text-align: center;padding-top: 10px;"><a href="http://www.miitbeian.gov.cn/" style="color: #757686;">豫ICP备18043565号</a></div>
                    <div class="col-12 col-lg-4 mt-4 mt-lg-0">
                        <div class="footer-bar-nav">
                            <ul class="flex flex-wrap justify-content-center justify-content-lg-end align-items-center">
                                <li><a href="#">list</a></li>
                                <li><a href="#">Terms of Use</a></li>
                                <li><a href="https://github.com/aoxipo">Privacy Policy</a></li>
                            </ul>
                        </div><!-- .footer-bar-nav -->
                    </div><!-- .col-12 -->
                </div><!-- .row -->
            </div><!-- .container -->
        </div><!-- .footer-bar -->
    </footer><!-- .site-footer -->

    <script type='text/javascript' src="{% static '/js/jquery.js' %}"></script>
    <script type="text/javascript" src="{% static '/js/swiper.min.js'%}" ></script>
    <script type='text/javascript' src="{% static '/js/masonry.pkgd.min.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/jquery.collapsible.min.js' %}"></script>
    <script type='text/javascript' src="{% static '/js/custom.js' %}"></script>

</body>
</html>